import request from '@/utils/request'
//贷款产品列表查询
export  function listProduct(query){
    return request({
        url:"/loan/loanInfo/list",
        method: 'post',
        data:query
    })
}
//新增贷款产品数据
export  function addProduct(query){
    return request({
        url:"/loan/loanInfo/add",
        method: 'post',
        data:query
    })
}
//修改贷款产品信息
export  function updateProduct(query){
    return request({
        url:"/loan/loanInfo/update",
        method: 'post',
        data:query
    })
}
//查询贷款产品详情查询
export  function oneProduct(id){
    return request({
        url:"/loan/loanInfo/query/"+id,
        method: 'get'
    })
}
//删除贷款产品
export  function delProduct(id){
    return request({
        url:"/loan/loanInfo/"+id,
        method: 'delete'
    })
}
//修改贷款产品状态
export  function stateProduct(id,state){
    return request({
        url:`/loan/loanInfo/${id}/state/${state}`,
        method: 'post'
    })
}
//上传贷款产品图片
export  function uploadProduct(data){
    return request({
        url:"/loan/loanInfo/upload",
        method: 'post',
        data:data
    })
}
//贷款产品提交审核
export  function auditProduct(data){
    return request({
        url:"/loan/loanInfo/audit",
        method: 'post',
        data:data
    })
}
//贷款产品查询审核记录
export  function queryAuditProduct(loanId){
    return request({
        url:"/loan/loanInfo/queryAudit/"+loanId,
        method: 'get'
    })
}
//贷款分期查询
export  function queryMonthProduct(data){
    return request({
        url:"/loan/loanStagesInfo/list",
        method: 'post',
        data:data
    })
}